package com.ruoyi.zhgd.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.zhgd.domain.vo.NAsphaltReportMatchVo;
import com.ruoyi.zhgd.service.NAsphaltReportMatchService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 全天数据分析
 *
 * @author tll
 * @date 2023-10-12
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/zhgd/asphaltDayStatistics")
public class NAsphaltReportMatchController extends BaseController {

    private final NAsphaltReportMatchService nAsphaltReportMatchService;

    /**
     * 获取生产配比数据报表
     * @param params
     * @return
     */
    @SaCheckLogin
    @GetMapping("/info")
    public R<NAsphaltReportMatchVo> info(@RequestParam Map<String, Object> params) {
        return R.ok(nAsphaltReportMatchService.info(params));
    }

}
